package Opgave4;


public class OpgaveB {
	public static void main(String[] args){
		MyThreadB threadB = new MyThreadB();
		threadB.start();
		
	

	}
}

class MyThreadB extends Thread{
	public void run(){
		this.interrupt();
		System.out.println(this.isInterrupted());
		try {
			sleep(0);
		} catch (InterruptedException e) {
			System.out.println("I was interrupted");
		}
		System.out.println("thread started");
	}
}

